# encoding: utf-8

import datetime, cgi

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db

import svrutil

class debug_webform(webapp.RequestHandler):
	def post(self):
		user=self.request.get('user')
		oldpwd=self.request.get('oldpwd')
		newpwd=self.request.get('newpwd')
		svrutil.response_begin(self.response)
		self.response.out.write('<p>用户名: %s</p>'%user.encode('utf8'))
		self.response.out.write('<p>旧密码: %s</p>'%oldpwd.encode('utf8'))
		self.response.out.write('<p>新密码: %s</p>'%newpwd.encode('utf8'))
		svrutil.response_end(self.response)

app=webapp.WSGIApplication([('/debugform',debug_webform)])

if __name__=='__main__':
	run_wsgi_app(app)


